package com.example.platfrom;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(value = "org.example.mapper")
@ServletComponentScan(basePackages = "com.example.platfrom.filter")
@EnableTransactionManagement
@EnableEurekaClient//eureka注册中心
@EnableHystrix//开启hystrix熔断机制
public class PlatfromApplication {

    public static void main(String[] args) {
        SpringApplication.run(PlatfromApplication.class, args);
    }

}
